package com.wxmp.market.zhuli.service;

import com.wxmp.core.util.AjaxResult;
import com.wxmp.market.zhuli.domain.WxZhuliRedeem;

import java.util.List;

public interface WxZhuliRedeemService {

    /**
     * 编辑/修改兑换码
     *
     * @param redeem
     * @return
     */
    public AjaxResult redeemEdit(WxZhuliRedeem redeem);

    /**
     * 新增兑换码信息
     *
     * @param redeemText
     * @param baseCode
     * @return
     */
    public AjaxResult redeemAdd(String redeemText, String baseCode);

    public WxZhuliRedeem selectAvailableCode(String baseCode);

    public void updateAvailableCode(WxZhuliRedeem redeem);

    public List<WxZhuliRedeem> list(WxZhuliRedeem redeem);
}
